var BlogAddPage = {
	'saveBlog':function(){
		if ($("#addBlogFrm").formValidate()) {
			addBlogAjax.send();
		}
	},
	'onFileChanged':function(ele) {
		var str = $(ele).val();
		var baseName = FilenameUtils.getBaseName(str);
		$("#addBlogFrm input[name='blogName']").val(baseName);
	},
	'onUploadSucc':function(stat) {
		stat = JSON.parse(stat);
		$("#uploadArticle").find("#uploadSuccess").remove();
		if(stat.success == true){
			$.messager.info("文件上传成功！");
			$("#uploadArticle .t-tag").after("<i id='uploadSuccess' class='fa fa-fw fa-check-circle m-color-dark-green'></i>");
			$("#addBlogFrm #fileId").val(stat.info.fileId);
		} else {
			$.messager.error("文件上传失败！");
		}
	},
	// 提交成功
	'onAddBlogSucc':function(data, status, xhr) {
		$.messager.info(data.message);
		var mWindow = MsgBox.getCurrentOpenDialogWindow();
		mWindow.BlogPage.refreshBlogPage();
		MsgBox.closeActiveDialog();
	}
};